<%@page import="oa.entity.User"%>
<%@page import="oa.paging.Page"%>
<%@page import="oa.service.impl.UserServiceImpl"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=utf-8");
UserServiceImpl userimpl= new  UserServiceImpl();
int usercount = userimpl.selectAllUserCount(0,0);
String pageNo = request.getParameter("pageNo");
if(pageNo==null){
	pageNo="1";
}
Page<User> pageInfo = new Page<User>(Integer.parseInt(pageNo), 5);
pageInfo.setTotalRow(usercount);
pageInfo.setPageList(userimpl.selectAllUser(null,Integer.parseInt(pageNo),5));
session.setAttribute("pageInfolist",pageInfo);
%>